<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Page_admin_menu
{
    /**
     * CodeIgniter global
     *
     * @var string
     **/
    protected $ci;

    /**
     *
     */
    public function __construct()
    {
        $this->ci =& get_instance();
    }

    /**
     *
     */
    public function getMenu()
    {
        $this->ci->lang->load('page/page');
        $res['CMS']['items']['pages'] = array('order' => '0002', 'name' => __l('page.menu.page'), 'url' => '/#', 'order' => '0002',
                                              'items' => array (
                                                  array('order' => '0001', 'name' => __l('page.menu.page.list'), 'url' => '/page/'),
                                                  array('order' => '0002', 'name' => __l('page.menu.page.add'),  'url' => '/page/add')
                                              )
                                        );

        $res['CMS']['items']['menus']['items'][] = array('order' => '0003', 'name' => 'Delete a Menu Item', 'url' => '/navigation/add');
        return $res;
    }

}